package com.yaodian100.ec.product.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.yaodian100.core.common.entity.BaseEntity;

/**
 * @author afra.chou
 * 
 */
@Entity
@Table(name = "EC_PRODUCT_TUANGOU_OP ")
public class ProductTuangouOP extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2097597450160842275L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "seq_ec_product_tuangou_op")
	@SequenceGenerator(name = "seq_ec_product_tuangou_op", sequenceName = "SEQ_EC_PRODUCT_TUANGOU_OP")
	@Column(name = "OP_ID", nullable = false)
	private Long opId;

	/**
	 * 團購編號
	 */
	@Column(name = "TUANGOU_ID", length = 30, nullable = false)
	private String tuangouId;

	/**
	 * 商品編號
	 */
	@Column(name = "PRODUCT_ID", length = 40, nullable = false)
	private String productId;

	/**
	 * 團購操作。1：成團，2：不成團
	 */
	@Column(name = "OPERATOR_DESC", length = 2, nullable = false)
	private String operatorDesc;

	/**
	 * @return the opId
	 */
	public Long getOpId() {
		return opId;
	}

	/**
	 * @param opId the opId to set
	 */
	public void setOpId(Long opId) {
		this.opId = opId;
	}

	/**
	 * @return the tuangouId
	 */
	public String getTuangouId() {
		return tuangouId;
	}

	/**
	 * @param tuangouId the tuangouId to set
	 */
	public void setTuangouId(String tuangouId) {
		this.tuangouId = tuangouId;
	}

	/**
	 * @return the productId
	 */
	public String getProductId() {
		return productId;
	}

	/**
	 * @param productId the productId to set
	 */
	public void setProductId(String productId) {
		this.productId = productId;
	}

	/**
	 * @return the operatorDesc
	 */
	public String getOperatorDesc() {
		return operatorDesc;
	}

	/**
	 * @param operatorDesc the operatorDesc to set
	 */
	public void setOperatorDesc(String operatorDesc) {
		this.operatorDesc = operatorDesc;
	}

}
